package com.lfz.quality_effect.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TCollectionBalanceCopy implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 法院
     */
    @TableField("court")
    private String court;

    /**
     * 民事-已结
     */
    @TableField("civil_settled")
    private Integer civilSettled;

    /**
     * 民事-未结
     */
    @TableField("civil_unsettled")
    private Integer civilUnsettled;

    /**
     * 数据导入日期
     */
    @TableField("data_time")
    private String dataTime;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;


    /**
     * 民商事结案率=（已结民事/已结民事+未结民事）
     */
    @TableField("civil_settled_rate")
    private BigDecimal civilSettledRate;

    /**
     * 总结案率=（全部已结/全部已结+ 全部未结）
     */
    @TableField("total_settled_rate")
    private BigDecimal totalSettledRate;

}
